package org.dromara.system.domain.bo;

import org.dromara.system.domain.XcxSubscribeTemplate;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 订阅模板业务对象 xcx_subscribe_template
 *
 * @author Lion Li
 * @date 2024-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XcxSubscribeTemplate.class, reverseConvertGenerate = false)
public class XcxSubscribeTemplateBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模板ID
     */
    @NotNull(message = "模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateId;

    /**
     * 使用场景
     */
    @NotBlank(message = "使用场景不能为空", groups = { AddGroup.class, EditGroup.class })
    private String usageScenarios;

    /**
     * 使用类型 1-小程序 2-公众号 0-弃用
     */
    @NotBlank(message = "使用类型 1-小程序 2-公众号 0-弃用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String usageType;


}
